import IdRequest from "@/api/baisc/IdRequest";
import request from "@/manager/base/RequestManager";
import AfterSaleCreateShippingRequest from "@/api/afterSale/warehouse/request/AfterSaleCreateShippingRequest";

/**
 * FileName: AfterSaleShippingControllerImpl.java
 * Author:   徐寿春
 * Date:     2023/4/24 13:50
 * <p>
 * 名称: 售后运单请求
 */
export function createShippingOrder(params: AfterSaleCreateShippingRequest) {
    return request.post('after/sale/shipping/createShippingOrder', params)
}

/**
 * 生成拒收发运单请求
 *
 * @author 徐寿春
 * 2023/4/24 13:51
 */
export function createRejectShippingOrder(params: AfterSaleCreateShippingRequest) {
    return request.post('after/sale/shipping/createRejectShippingOrder', params)
}


/**
 * 发运单提交
 *
 * @author 徐寿春
 * 2023/4/26 10:06
 */
export function commitShippingOrder(params: IdRequest) {
    return request.post('after/sale/shipping/commitShippingOrder', params)
}


/**
 *  拒收发运单提交
 *
 * @author 徐寿春
 * 2023/4/26 10:01
 */
export function commitRejectShippingOrder(params: IdRequest) {
    return request.post('after/sale/shipping/commitRejectShippingOrder', params)
}
